package com.zxy.house.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zxy.common.utils.PageUtils;
import com.zxy.common.utils.Query;

import com.zxy.house.dao.OfficeTypeDao;
import com.zxy.house.entity.OfficeTypeEntity;
import com.zxy.house.service.OfficeTypeService;


@Service("officeTypeService")
public class OfficeTypeServiceImpl extends ServiceImpl<OfficeTypeDao, OfficeTypeEntity> implements OfficeTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OfficeTypeEntity> page = this.page(
                new Query<OfficeTypeEntity>().getPage(params),
                new QueryWrapper<OfficeTypeEntity>()
        );

        return new PageUtils(page);
    }

}